package com.woniu.utils;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author WenXin
 * @version 1.0
 * @description: TODO
 * @date 2022/9/6 12:52
 */
public class MyJsonWebToken implements AuthenticationToken {

    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public MyJsonWebToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
